package cn.edu.ecut.test;

import com.mozicoding.jdbc.DatabaseType;
import com.mozicoding.jdbc.JdbcHelper;

/**
 * 测试插入操作
 */
public class JdbcHelperTest1 {
    public static void main(String[] args) {
        JdbcHelper helper=JdbcHelper.getInstance(DatabaseType.MYSQL);
        String insert="INSERT INTO t_students(id,login_name,password) VALUES(?,?,?)";
        int count=helper.update(insert,1,"陈帅","123");
        System.out.println(count);
        helper.release();
    }
}
